import fetch from '@/utils/fetch'


export function login(username, password, userType) {
  const data = {
    account: username,
    password: password,
    user_type: userType,
    login_channel:1
  };

  return fetch({
    url: '/uc/v1/login',
    method: 'post',
    data
  })
}

//拉取左侧菜单
export function getMenu(duty_id){
  return fetch({
    url:`/uc/v1/mgt/role/${duty_id}/m`,
    method:"get"
  })
}
